using System;

namespace octalforty.Syndication.Core.Rss
{
    /// <summary>
    /// Represents a single person in the context of RSS.
    /// </summary>
    public sealed class RssPerson : IPerson
    {
        #region Private Member Variables
        private String fullName = String.Empty;
        private String emailAddress = String.Empty;
        #endregion

        /// <summary>
        /// Initializes a new instance of <see cref="RssPerson"/> class.
        /// </summary>
        public RssPerson()
        {
        }

        /// <summary>
        /// Initializes a new instance of <see cref="RssPerson"/> class with given
        /// values.
        /// </summary>
        /// <param name="fullName">The full name of the person.</param>
        /// <param name="emailAddress">An email address of the person.</param>
        public RssPerson(String fullName, String emailAddress)
        {
            this.fullName = fullName;
            this.emailAddress = emailAddress;
        }

        #region IPerson Members
        /// <summary>
        /// Gets or sets a <see cref="String"/> which contains a human-readable name 
        /// for the <see cref="IPerson"/>.
        /// </summary>
        public String FullName
        {
            get { return fullName; }
            set { fullName = value; }
        }

        /// <summary>
        /// Gets or sets a <see cref="String"/> which contains an e-mail address associated 
        /// with the <see cref="IPerson"/>.
        /// </summary>
        public String EmailAddress
        {
            get { return emailAddress; }
            set { emailAddress = value; }
        }
        #endregion
    }
}
